package cn.dakaqi.sys.topic.services;

import cn.dakaqi.entities.SysTopic;
import cn.dakaqi.utils.exception.ServiceRuntimeException;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by chunyang on 2016/4/21.
 */
public interface SysTopicService
{
    void create(String param)throws ServiceRuntimeException;
    void save(SysTopic sysTopic)throws ServiceRuntimeException;
    void update(SysTopic sysTopice)throws ServiceRuntimeException;
    SysTopic findOne(Long id)throws ServiceRuntimeException;
    SysTopic findByCode(String code)throws ServiceRuntimeException;
    Page<SysTopic> findByDisplay(int pageNumber)throws ServiceRuntimeException;
    Page<SysTopic> findByTop(String createTime,int pageNumber)throws ServiceRuntimeException;
    List<SysTopic> findByTag(String createTime,String tags,int pageNumber)throws ServiceRuntimeException;
    void display(String param);
    void updateDisplay(String code,int status)throws ServiceRuntimeException;
    void top(String param);
    void udpateTop(String code,int status)throws ServiceRuntimeException;
    SysTopic browse(String code)throws ServiceRuntimeException;
    SysTopic browse(Long id)throws ServiceRuntimeException;
    void addGood(String memberCode,String code)throws ServiceRuntimeException;
    void good(String param);
    List<SysTopic> findTitleLike(String title);
    List<SysTopic> findTagsLike(String tag);
}
